package com.plan.car.entity.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

@ApiModel(value = "新增/修改用户信息的表单对象",description = "新增/修改用户信息的表单对象")
@Data
public class UserDTO {
    @ApiModelProperty(value = "用户id",required = true,example = "1")
    @NotEmpty(message = "用户id不为空")
    private Long userId;

    @ApiModelProperty(value = "账号",required = true,example = "admin")
    @NotEmpty(message = "账号不为空")
    private String username;

    @ApiModelProperty(value = "姓名",required = true,example = "超级管理员")
    @NotEmpty(message = "姓名不为空")
    private String name;

    @ApiModelProperty(value = "密码",required = true,example = "Hndx@2024")
    @NotEmpty(message = "密码不为空")
    private String password;

    @ApiModelProperty(value = "职位id",required = true,example = "1")
    @NotEmpty(message = "职位不为空")
    private Long postId;

    @ApiModelProperty(value = "部门id",required = true,example = "1")
    @NotEmpty(message = "部门不为空")
    private Long deptId;

    @ApiModelProperty(value = "角色id",required = true,example = "1")
    @NotEmpty(message = "角色不为空")
    private Long roleId;
}
